<script setup>
import { ref } from 'vue'

defineProps({
  counter: Number
})
const Counter = {
  data() {
    return {
      counter: 0
    }
  },
  mounted() {
    setInterval(() => {
      this.counter++
    }, 1000)
  }
}
</script>

<template>
  <img alt="Vue logo" src="./assets/logo.png" />
  <button onclick="mounted"></button>
  {{data}}
</template>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
